cmake_minimum_required(VERSION 3.0.0) # 定义要求cmake版本不得低于 3.0.0
project(az_log VERSION 0.1.0) # 创建目标工程 az_log

# include(CTest)
# enable_testing()
# add_subdirectory()

set(PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR}/build)
set(PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set(CMAKE_PROJECT_INCLUDE ./inc)

message(STATUS "Jpz PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR}")
message(STATUS "Jpz PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR}")
message(STATUS "Jpz CMAKE_PROJECT_INCLUDE ${CMAKE_PROJECT_INCLUDE}")


aux_source_directory(AZ_LOG_SOURCE ${PROJECT_SOURCE_DIR})
message(STATUS "Jpz AZ_LOG_SOURCE ${AZ_LOG_SOURCE}")

include_directories(${CMAKE_PROJECT_INCLUDE})


add_executable(az_log ${AZ_LOG_SOURCE})

message(STATUS "Jpz PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR}")
message(STATUS "Jpz CMAKE_BINARY_DIR ${CMAKE_BINARY_DIR}")
message(STATUS "Jpz AZ_LOG_BINARY_DIR ${AZ_LOG_BINARY_DIR}")

message(STATUS "Jpz CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
message(STATUS "Jpz CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")
message(STATUS "Jpz AZ_LOG_SOURCE_DIR ${AZ_LOG_SOURCE_DIR}")

message(STATUS "Jpz CPACK_PROJECT_NAME ${CPACK_PROJECT_NAME}")
message(STATUS "Jpz CPACK_PROJECT_VERSION ${CPACK_PROJECT_VERSION}")


MESSAGE(STATUS "HOME dir: $ENV{HOME}")

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)
